package com.lancoo.answer.util;

import android.text.Html;
import android.widget.TextView;

import androidx.databinding.BindingAdapter;

/**
 * Created by Dadong on 2020/8/18
 * Describe:
 */
public class BindUtil {

    @BindingAdapter("html")
    public static void setHtml(TextView textView, String text) {
        textView.setText(Html.fromHtml(text));
    }
}
